From: Alan Mackenzie Date: Sat, 21 Apr 2007 20:05:53 +0000 (+0000) Subject: (c-electric-slash): Replace wrong use of `kill-region' by X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~701 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e9259b5514eb10ba7f5afcd44ae5cddfdb95ac15;p=emacs.git (c-electric-slash): Replace wrong use of `kill-region' by `delete-region'. --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 9ef4aaace72..27796e05022 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -856,7 +856,7 @@ is inhibited." (narrow-to-region (point-min) (point)) (back-to-indentation) (looking-at (concat c-current-comment-prefix "[ \t]*$"))))) - (kill-region (progn (forward-line 0) (point)) + (delete-region (progn (forward-line 0) (point)) (progn (end-of-line) (point))) (insert-char ?* 1)) ; the / comes later. ; Do I need a t (retain sticky properties) here?